Repository navigation
Conversation
…ment#6747 loading as overworld
Contributor
|
sorry 🤭 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of change
Description
Between #6419 and #6747
Dimension#toString()returned the namespaced id, andEnumSettingsavestoString(), so Nether and End waypoints and markers saved in that window hold"minecraft:the_nether" / "minecraft:the_end". Since #6747 those no longer parse and load as the
default, Overworld, so the waypoints show up in the wrong dimension. Overworld ones aren't
affected because the default isn't saved.
This falls back to matching
toIdentifier()when a dimension setting doesn't parse. It's a bitspecific for
EnumSetting, but waypoints and markers both go straight throughSettings#fromTag,so this is the one place that covers both, and addons with a dimension setting too.
It only helps for data that hasn't been saved again yet. Once a build with #6747 has loaded and
saved a waypoint file, the value is already Overworld in it. Markers are saved with the modules,
so for anyone who already ran a newer build those are gone, but waypoint files for worlds you
haven't joined since are still fine.
Related issues
#6747
How Has This Been Tested?
Waypoint file with the dimension saved as "minecraft:the_nether":
.waypoint listsaid Overworldbefore and Nether after, and it saves back as "Nether".
Checklist: